home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
tbsrc
/
file2.bas
< prev
next >
Wrap
BASIC Source File
|
1994-10-09
|
7KB
|
220 lines
Option Explicit
Global Const ToolCnt = 10
Sub ToolCalled (nr As Integer, Status As Label)
Select Case nr
Case 0
vbQHEnabled 0, False
MsgBox "Function 0"
Case 1
vbQHEnabled 1, False
MsgBox "Function 1"
Case 2
vbQHEnabled 2, False
MsgBox "Function 2"
Case 3
vbQHEnabled 3, False
MsgBox "Function 3"
Case 4
vbQHEnabled 4, False
MsgBox "Function 4"
Case 5
vbQHEnabled 1, True
vbQHEnabled 2, True
vbQHEnabled 3, True
MsgBox "Function 5"
Case 6
MsgBox "Function 6"
Case 7
MsgBox "Function 7"
Case 8
MsgBox "Function 8"
Case 9
If MsgBox("Exit App?", 36) = 6 Then Unload wndMain
End Select
End Sub
Sub ToolCopy (Target As PictureBox)
Dim i As Integer
Dim temp1$, temp2$
Dim TempTool As ToolType
vbQHUsed True
vbQHInitTools ToolCnt, wndToolbar, Target, Target.Parent.MenuO_Sho, wndMain.Status, "Ready"
Load wndResources
i = InStr(wndResources.Tool(0).Tag, ";")
If i Then
temp1$ = Left$(wndResources.Tool(0).Tag, i - 1)
temp2$ = Right$(wndResources.Tool(0).Tag, Len(wndResources.Tool(0).Tag) - i)
Else
temp1$ = wndResources.Tool(0).Tag
End If
TempTool.Group = 1
TempTool.Visible = True
TempTool.Enabled = True
TempTool.qHelp = True
TempTool.StatText = temp1$
TempTool.MouseText = temp2$
TempTool.UseMouse = True
TempTool.CopyPicture = True
vbQHCopyToolExt TempTool, 0, wndResources.Tool(0), Target
i = InStr(wndResources.Tool(1).Tag, ";")
If i Then
temp1$ = Left$(wndResources.Tool(1).Tag, i - 1)
temp2$ = Right$(wndResources.Tool(1).Tag, Len(wndResources.Tool(1).Tag) - i)
Else
temp1$ = wndResources.Tool(1).Tag
End If
TempTool.Group = 1
TempTool.Visible = True
TempTool.Enabled = True
TempTool.qHelp = True
TempTool.StatText = temp1$
TempTool.MouseText = temp2$
TempTool.UseMouse = True
TempTool.CopyPicture = True
vbQHCopyToolExt TempTool, 1, wndResources.Tool(1), Target
i = InStr(wndResources.Tool(2).Tag, ";")
If i Then
temp1$ = Left$(wndResources.Tool(2).Tag, i - 1)
temp2$ = Right$(wndResources.Tool(2).Tag, Len(wndResources.Tool(2).Tag) - i)
Else
temp1$ = wndResources.Tool(2).Tag
End If
TempTool.Group = 1
TempTool.Visible = True
TempTool.Enabled = True
TempTool.qHelp = True
TempTool.StatText = temp1$
TempTool.MouseText = temp2$
TempTool.UseMouse = True
TempTool.CopyPicture = True
vbQHCopyToolExt TempTool, 2, wndResources.Tool(2), Target
i = InStr(wndResources.Tool(3).Tag, ";")
If i Then
temp1$ = Left$(wndResources.Tool(3).Tag, i - 1)
temp2$ = Right$(wndResources.Tool(3).Tag, Len(wndResources.Tool(3).Tag) - i)
Else
temp1$ = wndResources.Tool(3).Tag
End If
TempTool.Group = 2
TempTool.Visible = True
TempTool.Enabled = True
TempTool.qHelp = True
TempTool.StatText = temp1$
TempTool.MouseText = temp2$
TempTool.UseMouse = True
TempTool.CopyPicture = True
vbQHCopyToolExt TempTool, 3, wndResources.Tool(3), Target
i = InStr(wndResources.Tool(4).Tag, ";")
If i Then
temp1$ = Left$(wndResources.Tool(4).Tag, i - 1)
temp2$ = Right$(wndResources.Tool(4).Tag, Len(wndResources.Tool(4).Tag) - i)
Else
temp1$ = wndResources.Tool(4).Tag
End If
TempTool.Group = 2
TempTool.Visible = True
TempTool.Enabled = True
TempTool.qHelp = True
TempTool.StatText = temp1$
TempTool.MouseText = temp2$
TempTool.UseMouse = True
TempTool.CopyPicture = True
vbQHCopyToolExt TempTool, 4, wndResources.Tool(4), Target
i = InStr(wndResources.Tool(5).Tag, ";")
If i Then
temp1$ = Left$(wndResources.Tool(5).Tag, i - 1)
temp2$ = Right$(wndResources.Tool(5).Tag, Len(wndResources.Tool(5).Tag) - i)
Else
temp1$ = wndResources.Tool(5).Tag
End If
TempTool.Group = 2
TempTool.Visible = True
TempTool.Enabled = True
TempTool.qHelp = True
TempTool.StatText = temp1$
TempTool.MouseText = temp2$
TempTool.UseMouse = True
TempTool.CopyPicture = True
vbQHCopyToolExt TempTool, 5, wndResources.Tool(5), Target
i = InStr(wndResources.Tool(6).Tag, ";")
If i Then
temp1$ = Left$(wndResources.Tool(6).Tag, i - 1)
temp2$ = Right$(wndResources.Tool(6).Tag, Len(wndResources.Tool(6).Tag) - i)
Else
temp1$ = wndResources.Tool(6).Tag
End If
TempTool.Group = 3
TempTool.Visible = True
TempTool.Enabled = True
TempTool.qHelp = True
TempTool.StatText = temp1$
TempTool.MouseText = temp2$
TempTool.UseMouse = True
TempTool.CopyPicture = True
vbQHCopyToolExt TempTool, 6, wndResources.Tool(6), Target
i = InStr(wndResources.Tool(7).Tag, ";")
If i Then
temp1$ = Left$(wndResources.Tool(7).Tag, i - 1)
temp2$ = Right$(wndResources.Tool(7).Tag, Len(wndResources.Tool(7).Tag) - i)
Else
temp1$ = wndResources.Tool(7).Tag
End If
TempTool.Group = 3
TempTool.Visible = True
TempTool.Enabled = True
TempTool.qHelp = True
TempTool.StatText = temp1$
TempTool.MouseText = temp2$
TempTool.UseMouse = True
TempTool.CopyPicture = True
vbQHCopyToolExt TempTool, 7, wndResources.Tool(7), Target
i = InStr(wndResources.Tool(8).Tag, ";")
If i Then
temp1$ = Left$(wndResources.Tool(8).Tag, i - 1)
temp2$ = Right$(wndResources.Tool(8).Tag, Len(wndResources.Tool(8).Tag) - i)
Else
temp1$ = wndResources.Tool(8).Tag
End If
TempTool.Group = 3
TempTool.Visible = True
TempTool.Enabled = True
TempTool.qHelp = True
TempTool.StatText = temp1$
TempTool.MouseText = temp2$
TempTool.UseMouse = True
TempTool.CopyPicture = True
vbQHCopyToolExt TempTool, 8, wndResources.Tool(8), Target
i = InStr(wndResources.Tool(9).Tag, ";")
If i Then
temp1$ = Left$(wndResources.Tool(9).Tag, i - 1)
temp2$ = Right$(wndResources.Tool(9).Tag, Len(wndResources.Tool(9).Tag) - i)
Else
temp1$ = wndResources.Tool(9).Tag
End If
TempTool.Group = 3
TempTool.Visible = True
TempTool.Enabled = True
TempTool.qHelp = True
TempTool.StatText = temp1$
TempTool.MouseText = temp2$
TempTool.UseMouse = True
TempTool.CopyPicture = True
vbQHCopyToolExt TempTool, 9, wndResources.Tool(9), Target
Unload wndResources
End Sub